<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>添加友情链接</title>
    <link href="https://cdn.bootcdn.net/ajax/libs/twitter-bootstrap/5.3.1/css/bootstrap.min.css" rel="stylesheet">
    <style>
        /* 自定义样式：设置输入框宽度为父容器的 50% */
        .half-width {
            width: 50%;
        }
    </style>
</head>
<body>
<h1>添加友情链接</h1>
<form action="${pageContext.request.contextPath}/you/add" method="post">
    <label for="name" class="form-label">友链名称</label>
    <input type="text" class="form-control half-width" id="name" name="name" required>

    <label for="url">友链URL:</label>
    <input type="url" class="form-control half-width" id="url" name="url" required><br><br>
    <input type="submit" value="提交">
</form>
<script src="https://cdn.bootcdn.net/ajax/libs/bootstrap/5.3.1/js/bootstrap.bundle.min.js"></script>
</body>
</html>
